import request from '@/utils/request'

/**
 * 一级装箱明细分页查询
 * @param {查询条件} data
 */
export function pageProdOnePackDetail(query) {
	return request({
		url: 'ProdManage/ProdOnePackDetail/pageList',
		method: 'get',
		params: query,
	})
}

/**
 * 新增一级装箱明细
 * @param data
 */
export function addProdOnePackDetail(data) {
	return request({
		url: 'ProdManage/ProdOnePackDetail',
		method: 'post',
		data: data,
	})
}
/**
 * 修改一级装箱明细
 * @param data
 */
export function updateProdOnePackDetail(data) {
	return request({
		url: 'ProdManage/ProdOnePackDetail',
		method: 'PUT',
		data: data,
	})
}
/**
 * 获取一级装箱明细详情
 * @param {Id}
 */
export function getProdOnePackDetail(id) {
	return request({
		url: 'ProdManage/ProdOnePackDetail/' + id,
		method: 'get'
	})
}

/**
 * 删除一级装箱明细
 * @param {主键} pid
 */
export function delProdOnePackDetail(pid) {
	return request({
		url: 'ProdManage/ProdOnePackDetail/delete',
		method: 'POST',
		data: pid
	})
}
